package ru.yermak.bookkeeping.common;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Propagation;
import ru.yermak.bookkeeping.model.Group;
import ru.yermak.bookkeeping.model.User;

/**
 * User: harrier
 * Date: Oct 9, 2008
 */
public interface UserDao {
    Group getGroupByUserId(Integer userId);

    Group getGroupById(Integer groupId);

    User getUserByLogin(String login);

    Integer saveGroup(Group group);

    Integer saveUser(User user);

    User getUserById(Integer userId);
}
